The fourier series derivation